package com.dyp.parent.ctr;

import com.dyp.parent.service.AbstractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/demo")
public class demo {
    @Autowired
    private AbstractService abstractService;
    @RequestMapping(value = "/test")
    public String test(){
        return "test";
    }

    @RequestMapping(value = "/test2")
    public String test2(){
        return abstractService.unifyApi();
    }
}
